#!/usr/bin/env sh
set -xue;
sudo -v
projectDir=$(dirname $0)
# ./gradlew clean --no-daemon
./gradlew war --no-daemon
sudo mkdir -p /var/jetty/webapps
sudo mv $projectDir/build/libs/*.war /var/jetty/webapps/api.war
sudo docker restart jetty11
